﻿@using ShopShop.Models
@{
    AppClient db = new AppClient(Manufacturor.BANGIAY);
    IBanGiayRepository iBanGiayFactory = db.factory.CreateProduct();
    var Products = iBanGiayFactory.getProducts(); 
}

   @model ShopShop.Models.SubCategory

@foreach (Product pro in Products.Where(x => x.SubCategoryId.Equals(Model.SubCatId)))
{
  <img src="/Images/Product/@(pro.ProductImages.Select(y => y.Url).First())" />
     <br />
    @pro.ProductName

    <br />
    <label > Color:  </label> @pro.Color

    <div id="BulkDiscount" class="BulkDiscount">
                                 @Html.ActionLink("Mua hàng", "AddToCart",
        "ShoppingCart", new { id = pro.ProductId }, "")
                               
                            </div>
}